package global

import (
	"github.com/sirupsen/logrus"
	"gorm.io/gorm"
	"utilx/dbx/cache"
)

var (
	DB          *gorm.DB
	RedisBucket cache.RedisBucket = make(cache.RedisBucket)
	LOG         *logrus.Logger
)

func NewDB() *gorm.DB {
	return DB
}

func NewRedisBucket() cache.RedisBucket {
	return RedisBucket
}
